package com.tengju.support.domain.model.article;

import java.util.List;

public interface ArticleRepository {

    ArticleId insert(Article article);

    Article get(ArticleId articleId);

    int edit(Article article);

    int del(ArticleId articleId);

    int count(ArticleId articleId, String title, ArticleType type);

    List<Article> queryByPage(ArticleId articleId, String title, ArticleType type, Integer offset, Integer pageSize);

    int updateViewCnt(ArticleId articleId);

}
